package com.tdcoding.chat.constants;

import io.netty.util.internal.SystemPropertyUtil;

public class MainConstants {
	// ----------------------------------------- 连接接常量集 ------------------------------------
	public static final int CPU_CORE_NUMBER =  Runtime.getRuntime().availableProcessors();
	public static final int CORE_POOL_SIZE = CPU_CORE_NUMBER * 1000;
	public static final int MAX_POOL_SIZE = Integer.MAX_VALUE;
	
	public static final int SERVER_MAX_CHANNE_SIZE=1500000;
	
	//--------------- 配置文件基础路径-------------------------------
	public static final String SERVER_FILE_URL = "file.tdcoding.com/chat/files/";
//	public static final String SERVER_FILE_PATH ="/tdcoding/filemanager/ddchat";
	public static final String SERVER_FILE_PATH = SystemPropertyUtil.get("user.dir") + "\\filemanager\\";
	
	//--------------- 0正常；1隐身；2离开；3忙碌；4勿打扰；5离线---------------
	public static final int USER_STATUS_ONLINE =0x0;
	public static final int USER_STATUS_HIDE 	  =0x1;
	public static final int USER_STATUS_LEAVE    =0x2;
	public static final int USER_STATUS_BUSY 	   =0x3;
	public static final int USER_STATUS_DISTURB =0x4;
	public static final int USER_STATUS_OFFLINE =0x5;
	
	public static final int CHANNEL_TYPE_ALL=		0x0;
	public static final int CHANNEL_TYPE_CHAT= 0x1;
	public static final int CHANNEL_TYPE_FILE=	0x2;

	

	public static final String QINIU_AK = "DsORTKVtOr8QsJBGnyNne-4KxdsULzCUEX3RbY6f";
	public static final String QINIU_SK = "CLcFbJEWM0-16-6mabwrYT7xL7sbnQ2hUfMWuYoI";
}
